package com.ruoyi.ticket.service;

import com.ruoyi.ticket.domain.TicketGateRecord;
import com.ruoyi.ticket.domain.vo.TicketGateRecordVo;
import com.ruoyi.ticket.domain.bo.TicketGateRecordBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 闸机记录Service接口
 *
 * @author xupeng
 * @date 2023-03-29
 */
public interface ITicketGateRecordService {

    /**
     * 查询闸机记录
     */
    TicketGateRecordVo queryById(Long id);

    /**
     * 查询闸机记录列表
     */
    TableDataInfo<TicketGateRecordVo> queryPageList(TicketGateRecordBo bo, PageQuery pageQuery);

    /**
     * 查询闸机记录列表
     */
    List<TicketGateRecordVo> queryList(TicketGateRecordBo bo);

    /**
     * 新增闸机记录
     */
    Boolean insertByBo(TicketGateRecordBo bo);

    /**
     * 修改闸机记录
     */
    Boolean updateByBo(TicketGateRecordBo bo);

    /**
     * 校验并批量删除闸机记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
